package com.soul.app;

import com.soul.cache.Cache;
import com.soul.factory.HttpRemoteFactory;
import com.soul.interceptor.Interceptor;
import com.soul.interceptors.TokenInterceptor;
import com.soul.net.Request;
import com.soul.net.Response;
import com.soul.request.Login;

public class App {

    public static void main(String[] args) {
        HttpRemoteFactory factory = new HttpRemoteFactory();
        factory.regist(Login.class);
        factory.addInterceptor(new TokenInterceptor());
        Cache.token = "123456";
        Login login = factory.getInterface(Login.class);
        String str = login.login("17700000001","123456");
        System.out.println(str);
    }
}
